package demo1;

import org.springframework.stereotype.Component;

/*
    @Component注解是创建对象，对象名默认为类名首字母小写
 */
@Component
public class person {
    public void sayHello(){
        System.out.println("person:hello");
    }

}
